const mysql = require('mysql')

//创建数据库连接对象
const db = mysql.createPool({
    host:'182.92.114.82',
    user:'root',
    password:'123456',
    database:'my_db_01',
})

//向外共享数据库连接对象
module.exports = db